package com.damon.common;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class ResultModel {
	int code;
	String msg;
	
	public ResultModel(int code,String msg) {
		this.code = code;
		this.msg = msg;
	}
	
	public static ResultModel errorMsg(String msg) {
		return new ResultModel(500,msg);
	}
}
